package com.platform.modules.wallet.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.platform.common.web.domain.BaseEntity;
import com.platform.modules.wallet.enums.TransferInEnum;
import com.platform.modules.wallet.enums.TransferOutEnum;
import com.platform.modules.wallet.enums.TransferStatusEnum;
import com.platform.modules.wallet.enums.TransferTypeEnum;
import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;
import java.util.Date;


/**
 * 转账表
 */
@Data
@TableName("wallet_transfer")
@Accessors(chain = true)
public class WalletTransfer extends Model<WalletTransfer> {

    /**
     * 主键
     */
    @TableId
    private Long id;

    private String queryId;

    private Integer amount;

    private Long fromId;
    private Long toId;

    private TransferTypeEnum type;

    private TransferOutEnum outStatus;
    private TransferInEnum inStatus;

    private TransferStatusEnum status;

    private Date createDate;
    private Date createTime;
    private Date successTime;
    private Date updateTime;
    private Date receiveTime;
    private Date refundTime;
    private Date refundableTime;
}
